<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p {
            height: 200px;
            border: solid;
        }
    </style>
</head>

<body>

    <div>
        <p>p1</p>
        <p>p1</p>
        <p>p1</p>
        <p>p1</p>
        <p>p1</p>
        <p>p1</p>
        <p>p1</p>
    </div>
    <a href="" id="link">hello</a>
    <script>
        const link = document.getElementById('link');
        link.addEventListener('click', function (e) {
            e.preventDefault();
            console.log(e.defaultPrevented);
        })

        window.addEventListener('touchmove', function (e) {
            // if (e.defaultPrevented) {
            //     // 滚动
            // }
            console.log(e.defaultPrevented);
            console.log('hello');
        }, { passive: true })

    </script>

</body>

</html>